import { axios } from '~/plugins/axios';

// 机构状态 institution status
export const getAuditStatus = (params?: any) => axios({
  method: 'get',
  url: '/dict/auditStatus',
  params,
}) as Promise<any>;

// 国家 Country/Region
export const getCountryList = (params?: any) => axios({
  method: 'get',
  url: '/dict/countryList',
  params,
}) as Promise<any>;

// 行业 industry
export const getIndustryList = (params?: any) => axios({
  method: 'get',
  url: '/dict/industryList',
  params,
}) as Promise<any>;

// 机构类别 institution type
export const getOrgType = (params?: any) => axios({
  method: 'get',
  url: '/dict/orgType',
  params,
}) as Promise<any>;

// 专业 main business
export const getSpecialityList = (params?: any) => axios({
  method: 'get',
  url: '/dict/specialityList',
  params,
}) as Promise<any>;

// 回报机制
export const getReturnMechanismList = (params?: any) => axios({
  method: 'get',
  url: '/dict/returnMechanism',
  params,
}) as Promise<any>;

// 用户角色 role
export const getRoleSelect = (params?: any) => axios({
  method: 'get',
  url: '/dict/getAllRoles',
  params,
}) as Promise<any>;

// 用户角色 pppRole(包括ppp管理员)
export const getPPPRoleSelect = (params?: any) => axios({
  method: 'get',
  url: '/dict/getAllRolesWithPPP',
  params,
}) as Promise<any>;

// 机构类别 pppOrgType(包括ppp管理员)
export const getPPPOrgType = (params?: any) => axios({
  method: 'get',
  url: '/dict/orgTypeWithPPP',
  params,
}) as Promise<any>;

// 项目阶段
export const getProjectStage = (params?: any) => axios({
  method: 'get',
  url: '/dict/projectPhase',
  params,
}) as Promise<any>;
